using System;
using System.Collections.Generic;
using System.Text;


namespace MVCFramework.View.OpenGLVisitors
{
    [Serializable ]
    class ModelContextObject
    {
        public uint listname = 0;

        internal void SetUpScene(IModel model)
        {

        }

        internal void SetUpScene(IModelDrawable model, IVisitor openGLVisitor)
        {
          // if (listname == 0)
         //  listname = GL.GenLists(1);
            
       //   GL.NewList(listname, GL.GL_COMPILE);
       // foreach (System .Collections . IList _dataList in model)
            foreach (object _data in model)
            {

              //GL.PushMatrix();
                openGLVisitor.Visit(_data);
            //GL.PopMatrix();

            }
    //   GL.EndList();
        }
    }
}
